﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace NP.BPMReportPlatform.AnalysisInstance.Dtos
{
    /// <summary>
    /// 用于查询的实例状态
    /// </summary>
    public enum InstanceQueryStatus
    {
        /// <summary>
        /// 待发起
        /// </summary>
        [Description("待发起")]
        Ready = -1,

        /// <summary>
        /// 发起
        /// </summary>
        [Description("发起")]
        Start = 0,

        /// <summary>
        /// 处理中
        /// </summary>
        [Description("处理中")]
        Processing = 1,

        /// <summary>
        /// 已完成
        /// </summary>
        [Description("已完成")]
        Approved = 2,

        /// <summary>
        /// 已拒绝
        /// </summary>
        [Description("已拒绝")]
        Refused = 3,

        /// <summary>
        /// 已终止
        /// </summary>
        [Description("已终止")]
        Canceled = 4,

        /// <summary>
        /// 已退回
        /// </summary>
        [Description("已退回")]
        Rejected = 5,
    }

    /// <summary>
    /// 活动和任务类型
    /// </summary>
    public enum ActivityTaskType
    {
        /// <summary>
        /// 常规
        /// </summary>
        Normal = 0,

        /// <summary>
        /// 等待（不参与处理，仅当存在 NextAcitivityId/WaitingId 才会起作用）
        /// </summary>
        Waiting = 1,
    }
}
